package ProxyMode.version3;




public class Proxy  implements IGiveGift {

    Pursuit gg;

    //核心应该就是这个代理函数，表面上把数据传给了Proxy，实际上是传给了Pursuit
    //相当于添加了一层伪装
    public Proxy(SchoolGirl mm){
        this.gg=new Pursuit(mm);
    }

    public void GiveDolls(){    //give:赠送  Dolls：玩偶
       gg.GiveDolls();
    }

    public void GiveFlowers(){   //Flowers 花
      gg.GiveFlowers();
    }

    public void GiveChocolate(){   //Chocolate 巧克力
        gg.GiveChocolate();
    }
}
